/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fritadorcorrente.utils.hsql;

import org.hsqldb.server.Server;

/**
 *
 * @author manchini
 */
public class Banco {

    private static Server server;

    public static void startBanco() {
        if(server==null){
            server = new Server();
        }
        server.setDatabaseName(0, "fritadorcorrente");
        server.setDatabasePath(0, "fritadorcorrente");
        server.start();        
    }
    
    
    public static void stopBanco(){
        server.stop();
    }
}
